<div class="mb10 mt10 search_sortoption">
	
	<ul class="sortdiv_tab fangwu_sort">	
		<!--{if $_G['gp_sortid'] > 0 }-->
			<li {if !$_G['gp_typeid'] && !$_G['gp_filter']}class="out" {else} class="on" {/if}><a href="forum.php?mod=forumdisplay&sortid=$_G['gp_sortid']&filter=sortid&fid=$_G[fid]{if $_G['gp_archiveid']}&archiveid={$_G['gp_archiveid']}{/if}">{lang forum_viewall}</a></li>
			<!--{loop $one_quicksearchlist_array['quicksearchlist'] $option}-->	
				<!--{if  $option[identifier] == 'sex'}-->							
				<!--{loop $option['choices'] $idx $value}-->					
				<li{if $_G['gp_'.$option[identifier]] && $idx == $_G['gp_'.$option[identifier]]} class="out" {else} class="on" {/if}><a href="forum.php?mod=forumdisplay&sortid=$_G['gp_sortid']&filter=sortid&fid=$_G[fid]&filter=sortid&searchsort=1&$option[identifier]=$idx$sorturladdarray[$option[identifier]]" class="xi2">$value</a></li>
				<!--{/loop}-->		
			<!--{/if}-->						
			<!--{/loop}-->	
			
		<!--{else}-->
			<li {if !$_G['gp_typeid'] && !$_G['gp_filter']}class="out" {else} class="on" {/if}><a href="forum.php?mod=forumdisplay&fid=$_G[fid]{if $_G['gp_archiveid']}&archiveid={$_G['gp_archiveid']}{/if}">{lang forum_viewall}</a></li>
			<!--{loop $one_quicksearchlist_array['quicksearchlist'] $option}-->	
				<!--{if  $option[identifier] == 'sex'}-->							
				<!--{loop $option['choices'] $idx $value}-->					
				<li{if $_G['gp_'.$option[identifier]] && $idx == $_G['gp_'.$option[identifier]]} class="out" {else} class="on" {/if}><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=sortid&searchsort=1&$option[identifier]=$idx$sorturladdarray[$option[identifier]]" class="xi2">$value</a></li>
				<!--{/loop}-->		
			<!--{/if}-->						
			<!--{/loop}-->	
		<!--{/if}-->
	</ul>
	<!--{loop $quicksearchlist_array $id $value}-->
	<div id="sortdiv_$id" class="fangwusearch normal_sortdiv_wrap"  {if $id == $_G['gp_sortid']}{else}style="display: none"{/if} >
		<dl class="bm_c ptm tsm cl ">
			<!--{loop $value['quicksearchlist'] $option}-->	
			<!--{if  $option[identifier] != 'sex'}-->	
			<dt>$option[title]: </dt>
			<dd>
				<ul>
					<li{if $_G['gp_'.$option[identifier]] == 'all'} class="a"{/if}><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=sortid&searchsort=1$filterurladd&$option[identifier]=all$sorturladdarray[$option[identifier]]" class="xi2">{lang unlimited}</a></li>
					<!--{loop $option['choices'] $idx $value}-->					
					<li{if $_G['gp_'.$option[identifier]] && $idx == $_G['gp_'.$option[identifier]]} class="a"{/if}><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=sortid&searchsort=1&$option[identifier]=$idx$sorturladdarray[$option[identifier]]" class="xi2">$value</a></li>
					<!--{/loop}-->
				</ul>
			</dd>
			<!--{/if}-->
			<!--{/loop}-->
		</dl>
	</div>
	<!--{/loop}-->
	
</div>